home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 5 / QUICKTIM / MP_HEADE / VCR.H < prev   
C/C++ Source or Header  |  1992-07-13  |  2KB  |  71 lines

  1. #pragma once
  2.  
  3. #define UP 1
  4. #define DOWN 0
  5.  
  6. #define BASE_ICON    700
  7. #define ICON_COUNT    7
  8.  
  9. #define GO_START_ICON    700
  10. #define RW_ICON    701
  11. #define STOP_ICON 702
  12. #define PLAY_ICON    703
  13. #define FF_ICON    704
  14. #define GO_END_ICON    705
  15. #define LAST_ICON 706
  16. #define VOLUME_UP_CICN    800
  17. #define VOLUME_DOWN_CICN    801
  18.  
  19. #define GO_START_BUTTON    1
  20. #define RW_BUTTON    2
  21. #define STOP_BUTTON 3
  22. #define PLAY_BUTTON    4
  23. #define FF_BUTTON    5
  24. #define GO_END_BUTTON    6
  25. #define LAST_BUTTON 7
  26.  
  27. #define STATUS_BOX    7
  28. #define CLOCK_BOX    8
  29. #define TAPE_SLOT    9
  30.  
  31. #define VOLUME_DOWN    10
  32. #define VOLUME_UP    11
  33. #define VCR_BOX        12
  34.  
  35. #define PROGRESS_1    13
  36. #define PROGRESS_2    14
  37. #define PROGRESS_3    15
  38. #define PROGRESS_4    16
  39.  
  40.  
  41. enum {stopped = 0,playing,fastforward,re_wind,gotoend,gotostart};
  42.  
  43. typedef struct buttons {
  44.     Boolean button[LAST_BUTTON];
  45.     int buttonRNum[LAST_BUTTON];
  46. } Buttons;
  47.  
  48. class VCR : public Dlog {
  49.     public:
  50.         Buttons myButtons;
  51.         short vcr_mode;
  52.         
  53.         VCR(void);
  54.         ~VCR(void);
  55.         
  56.         virtual void loadResource( int number);    // loads resource and sets number
  57.         virtual int HandleDialogItem(int itemHit, Point thePoint, int thePart);
  58.         virtual void RedrawDialog(void);
  59.         virtual void RedrawButtons(void);
  60.         virtual void ButtonsAndValues(int itemHit);
  61.         virtual void RedrawStatus(void);
  62.         virtual void RedrawTime(void);
  63.         virtual void UpdateProgress(void);
  64.         virtual void DrawAllProgress(int color);
  65.         virtual void ClearAllButtons(void);
  66.     
  67.     private:
  68.         virtual void Draw2Rects2Colors(Rect r1, int color1, Rect r2, int color2);
  69.         virtual void FlashButton( int id);
  70.  
  71. };